package com.shiliuzi.www.pojo.dto.revoke;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecordClassSetDto {

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SingleSetDto {
        /**
         * 奖惩类别，0表示惩罚，1表示奖励
         */
        @NotNull
        @Range(max = 1, min = 0)
        private Integer types;

        /**
         * 奖惩类型
         */
        @NotNull
        private String contents;
    }

    @NotNull
    @Valid
    private List<SingleSetDto> singleSetDtos;
}
